﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using PJ.Business;
using Microsoft.Practices.Composite.Events;
using PJ.Business.SalePurchase.Sale;
using PJ.Business.Partner;

namespace PJ.Presentation.Partner
{
    public class CustomerModel : PartnerModel, ICustomerModel
    {
        public CustomerModel()
        {
        }
        public CustomerModel(IBusinessObject obj, ICustomerService service)
            : base(obj, service)
        {
        }
        public CustomerModel(string globalId, ICustomerService service)
            : base(globalId, service)
        {
        }
        [Microsoft.Practices.Unity.InjectionConstructor]
        public CustomerModel(ICustomerInfoView view, IEventAggregator aggregator, ICustomerService service)
            : base(view, aggregator, service)
        {
            EventAggregator.GetEvent<CustomerSelectionEvent>().Subscribe(OnSelectionChange);
        }
    }
}
